/*****************************************************************************
 * set.h: header writing
 *****************************************************************************
 * Copyright (C) 2003-2010 zmvc project
 *
 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
 *          Loren Merritt <lorenm@u.washington.edu>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
 *
 * This program is also available under a commercial proprietary license.
 * For more information, contact us at licensing@zmvc.com.
 *****************************************************************************/

#ifndef Zmvc_ENCODER_SET_H
#define Zmvc_ENCODER_SET_H

void zmvc_sps_init( zmvc_sps_t *sps, int i_id, zmvc_param_t *param );
void zmvc_sps_write( bs_t *s, zmvc_sps_t *sps );
void zmvc_pps_init( zmvc_pps_t *pps, int i_id, zmvc_param_t *param, zmvc_sps_t *sps );
void zmvc_pps_write( bs_t *s, zmvc_pps_t *pps );
void zmvc_sei_recovery_point_write( zmvc_t *h, bs_t *s, int recovery_frame_cnt );
int  zmvc_sei_version_write( zmvc_t *h, bs_t *s );
int  zmvc_validate_levels( zmvc_t *h, int verbose );
void zmvc_sei_buffering_period_write( zmvc_t *h, bs_t *s );
void zmvc_sei_pic_timing_write( zmvc_t *h, bs_t *s );
void zmvc_sei_write( bs_t *s, uint8_t *payload, int payload_size, int payload_type );
void zmvc_filler_write( zmvc_t *h, bs_t *s, int filler );

#endif
